package com.xiaoshuidi.cloud.framework.pay.core.client.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

/**
 * 统一下单 Response DTO
 */
@Data
public class PayOrderUnifiedRespDTO<T> {
    /**
     * 三方下单请求商户订单号
     */
    private String merchantOrderId;
    /**
     * 三方返回的交易号
     */
    private String transactionId;
    /**
     * 展示模式
     */
    private String displayMode;
    /**
     * 展示内容
     */
    private String displayContent;

    @JsonIgnore
    private String rawRequest;
    @JsonIgnore
    private T rawResponse;

    public PayOrderUnifiedRespDTO<T> setRawResponse(T rawResponse) {
        this.rawResponse = rawResponse;
        return this;
    }
}
